module.exports = {
  // publicPath: process.env.NODE_ENV === 'production'  ? '/production-sub-path/' : '/',    //production”（生产环境）“development”（开发环境）
  lintOnSave: false,  //关闭eslint检查
  devServer: {
    port: 8081, // 端口号
    host: 'www.hxov.com', // 只有本地(默认localhost)
    open: true, //配置自动启动浏览器
    // https: false,
    // proxy: 'http://localhost:4000' // 配置跨域处理,只有一个代理
    //vue中报错， [WDS] Disconnected!解决方法
    //   headers: {
    //     'Access-Control-AllOw-Or1g1n' : '*'
    //   },
    //   hotOnly: false,
    //   disableHostCheck: true
  },
  pages: {
    front: {
      entry: "src/front/main.js",
      template: "src/front/front.html",
      filename: "index.html" /*filename定义为index.html，页面路由默认从该页面开始*/,
      title: "前台中心"
    },
    behind: {
      entry: "src/behind/main.js",
      template: "src/behind/behind.html",
      filename: "behind.html",
      title: "后台中心"
    },
    develop: {
      entry: "src/develop/main.js",
      template: "src/develop/develop.html",
      filename: "develop.html",
      title: "开发中心"
    }
  },
  css: {
    loaderOptions: {
      sass: {
        prependData: `@import "./src/public/css/base.scss";`,
      },
    },
  },
};
